// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-04-24 10:28:09
// 生成路径: internal/app/business/service/agents.go
// 生成人：周志雄
// desc:代理商
// company:云南奇讯科技有限公司
// ==========================================================================


package service


import (
	"context"
	"github.com/tiger1103/gfast/v3/api/v1/business"
	"github.com/tiger1103/gfast/v3/internal/app/business/model"	
)


type IAgents interface {
	List(ctx context.Context, req *business.AgentsSearchReq) (res *business.AgentsSearchRes, err error)
	GetById(ctx context.Context, Id int) (res *model.AgentsInfoRes,err error)
	Add(ctx context.Context, req *business.AgentsAddReq) (err error)
	Edit(ctx context.Context, req *business.AgentsEditReq) (err error)
	Delete(ctx context.Context, Id []int) (err error)
}


var localAgents IAgents


func Agents() IAgents {
	if localAgents == nil {
		panic("implement not found for interface IAgents, forgot register?")
	}
	return localAgents
}


func RegisterAgents(i IAgents) {
	localAgents = i
}
